opening the new file creating the new file opening the GIF file reading the key (FIG) file opening the key (FIG) file creating the registration form validating the registration number writing the preferences file opening the preferences file writing the file reading the file